/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package id3.utils;

import id3.models.Attribute;

/**
 *
 * @author tungck
 */
public class Constants {
    public static int NUMBER_ATTRIBUTE = 16;
    public static String LOW = "low";
    public static String HIGHT = "hight";
    
    public static String[] LABEL = {"+", "-"};
    
    
    private static Attribute[] mapAttrs = null;
    private static final String[] A0 = {"a", "b"};
    private static final String[] A1 = {LOW, HIGHT};
    private static final String[] A2 = {LOW, HIGHT};
    private static final String[] A3 = {"u", "y", "l", "t"};
    private static final String[] A4 = {"g", "p","gg"};
    private static final String[] A5 = {"c", "d", "cc", "i", "j", "k", "m", "r", "q", "w", "x", "e", "aa", "ff"};
    private static final String[] A6 = {"v", "h", "bb", "j", "n", "z", "dd", "ff", "o"};
    private static final String[] A7 = {LOW, HIGHT};
    private static final String[] A8 = {"t", "f"};
    private static final String[] A9 = {"t", "f"};
    private static final String[] A10 = {LOW, HIGHT};
    private static final String[] A11 = {"t", "f"};
    private static final String[] A12 = {"g", "p", "s"};
    private static final String[] A13 = {LOW, HIGHT};
    private static final String[] A14= {LOW, HIGHT};
    private static final String[] A15 = {"+", "-"};
    
    private static void mapAttrToIndex(){
        mapAttrs = new Attribute[Constants.NUMBER_ATTRIBUTE];
        mapAttrs[0] = new Attribute("A0", A0);
        mapAttrs[1] = new Attribute("A1", A1);
        mapAttrs[2] = new Attribute("A2", A2);
        mapAttrs[3] = new Attribute("A3", A3);
        mapAttrs[4] = new Attribute("A4", A4);
        mapAttrs[5] = new Attribute("A5", A5);
        mapAttrs[6] = new Attribute("A6", A6);
        mapAttrs[7] = new Attribute("A7", A7);
        mapAttrs[8] = new Attribute("A8", A8);
        mapAttrs[9] = new Attribute("A9", A9);
        mapAttrs[10] = new Attribute("A10", A10);
        mapAttrs[11] = new Attribute("A11", A11);
        mapAttrs[12] = new Attribute("A12", A12);
        mapAttrs[13] = new Attribute("A13", A13);
        mapAttrs[14] = new Attribute("A14", A14);
        mapAttrs[15] = new Attribute("A15", A15);
        
    }
    
    public static Attribute[] getMapAttrs(){
        if (mapAttrs == null) {
            
            mapAttrToIndex();
            
        }
        return mapAttrs;
    }

}
